package com.ossjk.qlh.tgb.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ossjk.core.base.entity.BaseEntity;
import com.ossjk.core.system.annotation.OptionDictionary;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Copyright  Fri Jan 21 20:07:27 CST 2022 QLH. Tech Ltd. All rights reserved.
 * 
 * @Package: com.ossjk.qlh.projects
 * @ClassName: OrderInfo
 * @Description: OrderInfo-实体类
 * @author: chair
 * @date:  2022-01-21 20:07:27 
 */
@ApiModel(value = "订单信息")
@Data
public class OrderInfo extends BaseEntity<OrderInfo> {

	private static final long serialVersionUID = 1L;


	/**
	 * 订单号
	 */
	@ApiModelProperty(value = "订单号")
	@TableField("order_num")
	private String orderNum;
	/**
	 * 快递号
	 */
	@ApiModelProperty(value = "快递号")
	@TableField("express_num")
	private String expressNum;
	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	@TableField("uid")
	private String uid;
	/**
	 * 订单状态: 1-待付款，2-已付款/待发货，3-已发货，4-确认收货，5-申请退款，6-退款成功
	 */
	@OptionDictionary(key = "order-status")
	@ApiModelProperty(value = "订单状态: 1-待付款，2-已付款/待发货，3-已发货，4-确认收货，5-申请退款，6-退款成功")
	@TableField("status")
	private Integer status;
	/**
	 * 付款时间
	 */
	@ApiModelProperty(value = "付款时间")
	@TableField("payment_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date paymentTime;
	/**
	 * 综合邮费
	 */
	@ApiModelProperty(value = "综合邮费")
	@TableField("total_postage")
	private BigDecimal totalPostage;
	/**
	 * 总价
	 */
	@ApiModelProperty(value = "总价")
	@TableField("price")
	private BigDecimal price;
	/**
	 * 收货地址
	 */
	@ApiModelProperty(value = "收货地址")
	@TableField("address")
	private String address;
	/**
	 * 订单中商品数量
	 */
	@ApiModelProperty(value = "订单中商品数量")
	@TableField("count")
	private Integer count;
	/**
	 * 商户id
	 */
	@ApiModelProperty(value = "商户id")
	@TableField("business_id")
	private Integer businessId;


	 
}
